package com.gn.dto;

import java.util.List;
import java.util.Map;

/**
 * The Class PageInfo.
 * DTO分页
 * @param <T> the generic type
 */
public class PageInfo<T> {
	
	/** The curr page. */
	private int currPage;

	/** The targ page. */
	private int targPage;

	/** The total page. */
	private int totalPage;
	
	/** The page size. */
	private int pageSize = 10;
	
	/** The total. */
	private long total = 0L;
	
	/** The result list. */
	private List<T> resultList;
	
	/** The query map. */
	private Map<String, Object> queryMap;

	/**
	 * Gets the curr page.
	 *
	 * @return the curr page
	 */
	public int getCurrPage() {
		return currPage;
	}

	/**
	 * Sets the curr page.
	 *
	 * @param currPage the curr page
	 */
	public void setCurrPage(int currPage) {
		this.currPage = currPage;
	}

	/**
	 * Gets the targ page.
	 *
	 * @return the targ page
	 */
	public int getTargPage() {
		return targPage;
	}

	/**
	 * Sets the targ page.
	 *
	 * @param targPage the targ page
	 */
	public void setTargPage(int targPage) {
		this.targPage = targPage;
	}

	/**
	 * Gets the total page.
	 *
	 * @return the total page
	 */
	public int getTotalPage() {
		return totalPage;
	}

	/**
	 * Sets the total page.
	 *
	 * @param totalPage the total page
	 */
	public void setTotalPage(int totalPage) {
		this.totalPage = totalPage;
	}

	/**
	 * Gets the total.
	 *
	 * @return the total
	 */
	public long getTotal() {
		return total;
	}

	/**
	 * Sets the total.
	 *
	 * @param total the total
	 */
	public void setTotal(long total) {
		this.total = total;
	}

	/**
	 * Gets the result list.
	 *
	 * @return the result list
	 */
	public List<T> getResultList() {
		return resultList;
	}

	/**
	 * Sets the result list.
	 *
	 * @param resultList the result list
	 */
	public void setResultList(List<T> resultList) {
		this.resultList = resultList;
	}

	/**
	 * Gets the page size.
	 *
	 * @return the page size
	 */
	public int getPageSize() {
		return pageSize;
	}

	/**
	 * Sets the page size.
	 *
	 * @param pageSize the page size
	 */
	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}

	/**
	 * Gets the query map.
	 *
	 * @return the query map
	 */
	public Map<String, Object> getQueryMap() {
		return queryMap;
	}

	/**
	 * Sets the query map.
	 *
	 * @param queryMap the query map
	 */
	public void setQueryMap(Map<String, Object> queryMap) {
		this.queryMap = queryMap;
	}
	
}
